package com.example.wwj.mapper;

import com.example.wwj.pojo.Score;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface ScoreMapper {
    List<Score> findAll();

    List<Score> selectPage(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize, @Param("class_id") Integer class_id, @Param("grade_id") Integer grade_id, @Param("teacher_name") String teacher_name,@Param("student_name") String student_name);

    Integer selectTotal(@Param("class_id") Integer class_id,@Param("grade_id") Integer grade_id,@Param("teacher_name") String teacher_name,@Param("student_name") String student_name);

    int deleteScoreByIds(Map<String, Object> map);
}
